/** @format */
import { ref } from 'vue';
import { defineStore } from 'pinia';
export const useGlobalLoading = defineStore('global-loading', () => {
  const loading = ref(true);
  const setGlobalLoading = (data: boolean = false) => {
    loading.value = data;
  };
  return {
    loading,
    setGlobalLoading,
  };
});
